package com.meituan.catering.management.order.dao.mapper;

import com.meituan.catering.management.order.dao.model.CateringOrderItemDO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单子项对应的MyBatis Mapper
 */
@Mapper
public interface CateringOrderItemMapper {


    List<CateringOrderItemDO> findItemsByOrederId(Long tenantId, Long orderId);

    Integer insert(CateringOrderItemDO cateringOrderItemDO);

    Integer makeOrder(Long tenantId, Long orderId, String seqNo, Integer version);

    CateringOrderItemDO findItemByOrderId(Long orderId, String seqNo, Long tenantId);

    Integer produceOrder(CateringOrderItemDO cateringOrderItemDO);

    Integer updateItem(CateringOrderItemDO cateringOrderItemDO);

}
